package com.company.cloud.admin.constant;

import com.company.cloud.common.constant.BaseCodeEnum;

public class PlatformAdminConstant {

	/**
	 * 顶级权限默认CODE
	 */
	public static String PERMISSION_TOP_CODE = "-1";

	/**
	 * 权限显示平台(所有)
	 */
	public static String PERMISSION_SHOW_ALL = "0";

	/**
	 * 顶级部门默认ID
	 */
	public static Integer DEPT_TOP_ID = 0;

	/** 用户状态 */
	public enum AdminUserState implements BaseCodeEnum {
		AUS_Open("1", "正常"), AUS_Frozen("2", "冻结"), AUS_Del("0", "删除"),;
		private String code;
		private String msg;

		private AdminUserState(String code, String msg) {
			this.code = code;
			this.msg = msg;
		}

		@Override
		public String getCode() {
			return code;
		}

		@Override
		public String getMsg() {
			return msg;
		}
	}
	
//  /**
//  * 用户状态
//  */
// public enum UserStateEnum implements BaseCodeEnum{
//     NORMAL("1", "正常"),
//     FREEZED("2", "冻结"),
//     DELETED("3", "删除");
//
//     private String code;
//     private String msg;
//     private UserStateEnum(String code, String msg) {
//         this.code = code;
//         this.msg = msg;
//     }
//     public String getCode() {
//         return code;
//     }
//     public String getMsg() {
//         return msg;
//     }
// }



	/**
	 * 权限分类
	 */
	public enum PermissionTypeEnum implements BaseCodeEnum {
		P_General("1", "普通权限"), P_Menu("2", "菜单权限"), P_Button("3", "按钮权限");
		private String code;
		private String msg;

		private PermissionTypeEnum(String code, String msg) {
			this.code = code;
			this.msg = msg;
		}

		@Override
		public String getCode() {
			return code;
		}

		@Override
		public String getMsg() {
			return msg;
		}
	}



}
